﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DatePicker.aspx.cs" Inherits="GuessLAB.DatePicker" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
function fnSetDate(dateValue)
{
// retrieve the date control name from the querystring
// that is the name of the input control on the parent form
// that the user want to set with the clicked date
Var ctl = window.location.search.substr(1).substring(4);
window.opener.document.forms[0].elements[ctl].value = dateValue;
// close this popup
self.close();
}
</script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:calendar id="Calendar1" runat="server"
  nextprevformat="shortmonth" CssClass="MyCalendar"
  daynameformat="firsttwoletters" ondayrender="OnDayRender">
  <TitleStyle Font-Size="14px" Font-Bold="True" BorderWidth="2px"
     ForeColor="#000055"></TitleStyle>
</asp:calendar>

    </form>
</body>
</html>
